package com.xiaoshuidi.cloud.module.rooms.api;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.rooms.enums.ApiConstants;
import com.xiaoshuidi.cloud.module.rooms.vo.RoomEquipmentVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = ApiConstants.SERVERNAME)
@Tag(name = "RPC接口 - 资产相关接口")
public interface RoomEquipmentApi {
    String PREFIX = ApiConstants.PREFIX + "/roomequipment";

    @Operation(summary = "根据房源id获取房间资产")
    @Parameter(name = "roomId", description = "房源id")
    @GetMapping(PREFIX + "/get-roomequipment-by-roomId")
    CommonResult<List<RoomEquipmentVO>> getRoomEquipmentByRoomId(@RequestParam("roomId") Long roomId);
}
